package com.lijian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_order")
@NoArgsConstructor
@AllArgsConstructor
public class Order {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField(value = "uid")
    private Integer userId;

    @TableField(value = "mid")
    private Integer menuId;

    @TableField(value = "aid")
    private Integer adminId;

    @TableField(value = "date")
    private Date createTime;

    @TableField(value = "state")
    private Integer state;

    @TableField(exist = false)
    private Menu menu;

    @TableField(exist = false)
    private String formatDate;

    @TableField(exist = false)
    private User user;

    /*@TableField(exist = false)
    private Admin admin;*/
}
